package main;

import java.util.Comparator;

public class ItemComparator implements Comparator<Item>{

	@Override
	public int compare(Item item1, Item item2) {
		if (item1.getIndiceGlobal() > item2.getIndiceGlobal()){
			return -1;
		}
		if (item1.getIndiceGlobal() == item2.getIndiceGlobal()){
			return 0;
		}
		return 1;
	}
	
}
